﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace InfonavaEye.Service
{
    public  class ServiceResult<T>
    {
        [JsonProperty("error_code")]
        public long code { get; set; }

        [JsonProperty("error_msg")]
        public string msg { get; set; }

        [JsonProperty("data")]
        public T data { get; set; }

        public bool isSuccess() {
            return code==200;
        }
    }
}
